<template>
  <div>
     <span>{{obj.shopName}}</span>
     <button @click="$emit('input',value+1)">+</button>
     <span>{{value}}</span>
     <button @click="$emit('input',jian)">-</button>
   </div>
</template>
 
<script>
export default {
  name:"MyeatFood",
  components: {},
  props: {
    value:{
      type:Number,
    },
    obj:{
      type:Object,
    }
  },
  data() {
    return {};
  },
  computed: {
    jian(){
      return this.value===0? 0: this.value-1
    }
  },
  watch: {},
  created() {},
  methods: {
  }
};
</script>

<style scoped>
     span {
      margin: 5px;
     }
</style>